package com.yizhang.pattern.decorator;

import java.math.BigDecimal;

/**
 * @Author: yi.zhang
 * @CreateTime: 2025-08-29 14:22:55
 * @Description:
 */
public class SugarDecorator extends DecoratorCoffee {

    public SugarDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public BigDecimal getPrice() {
        return super.getPrice().add(new BigDecimal("2.5"));
    }

    @Override
    public String getDescription() {
        return "加糖" + super.getDescription();
    }
}
